package org.minproject.my_library_back.service;

import org.minproject.my_library_back.common.CommonResponse;
import org.minproject.my_library_back.domain.Information;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【information】的数据库操作Service
* @createDate 2024-11-21 09:11:46
*/
public interface InformationService extends IService<Information> {
    CommonResponse<List<Information>> getInformations() throws Exception;
    CommonResponse<List<Information>> getInformationById(int id) throws Exception;
    CommonResponse<List<Information>> getInformationBySort(Information information) throws Exception;
    CommonResponse<Information> addInformation(Information information) throws Exception;
    CommonResponse<Information> deleteInformation(int id) throws Exception;
}
